import fetch from '@/utils/network/fetch'

// 学习状态
const getStudyStatus = (objc = {}) => {
    fetch('/api/learningrecords/learning-stat', objc)
}

// 学习报告
const getStudyReports = (objc = {}) => {
    fetch('/api/report/trainning/employees', objc)
}

// 组织报告
const getSOrganizationReports = (objc = {}) => {
    fetch('/api/report/trainning/organization', objc)
}

// 获取组织被分配任务
const getSOrganization = (objc = {}) => {
    fetch('/api/report/trainning/oneorganization', objc)
}

// 获取学员被分配任务 /api/v1/report/trainning/oneemployee
const getStudyReport = (objc = {}) => {
    fetch('/api/report/trainning/oneemployee', objc)
}

// 清除员工考试报告
const deleteStudyEmployeeExamReport  = (params) => {
    fetch('/api/record/learning/deletion', params)
}

export default {
    getStudyStatus,
    getStudyReports,
    getSOrganizationReports,
    getSOrganization,
    getStudyReport,
    deleteStudyEmployeeExamReport
}